//
//  AccountManager.swift
//  MagoT
//
//  Created by mac on 2023/12/23.
//

import Foundation
import SVProgressHUD
import RxSwift
import RxRelay

final class AccountManager {
    
    /// 默认是有联网的
    let networkIsReachableRelay = BehaviorRelay(value: true)
    
    /// 是否登录的BehaviorRelay属性
    let isLoginRelay = BehaviorRelay(value: false)
    
    /// 本地保存用户名
    @UserDefault(key: kUsername, defaultValue: nil)
    var username: String?
    
    /// 本地保存密码
    @UserDefault(key: kPassword, defaultValue: nil)
    var password: String?
    
    /// 单例
    static let shared = AccountManager()
    
    /// 私有化初始化方法
    private init() {}
}
